package com.njsf.dao;

import com.njsf.pojo.Book;
<<<<<<< HEAD
import org.apache.ibatis.annotations.Param;
=======
>>>>>>> 180ace60693232df69575b4f82fc34aeb3fc90e8
import org.springframework.stereotype.Repository;


import java.util.List;

@Repository
public interface BookMapper {

<<<<<<< HEAD
    List<Book> findAll(@Param("bookName") String bookName);
=======
    List<Book> findAll();
>>>>>>> 180ace60693232df69575b4f82fc34aeb3fc90e8

    int insert(Book book);

    Book findById(Integer id);

<<<<<<< HEAD
    int update(Book book);

    int deleteById(Integer id);

    int deleteList(List<Integer> ids);
=======
    int updateBook(Book book);

    int delBook(Integer id);
>>>>>>> 180ace60693232df69575b4f82fc34aeb3fc90e8

}
